<?php

class LyscHtml {
	
	public static function citySelector($form, $model, $attribute, $htmlOptions = array()) {
		$form->controller->widget('coms.ui.CitySelector', array(
			'form' => $form,
			'model' => $model,
			'attribute' => $attribute,
			'inputHtmlOptions' => CUtilHelper::arr()->arrayStrMerge(
				$htmlOptions, 
				array(
					'class' => 'bh-ydxx-input-jj',
				), 
				array('id')
			),
		));	
	}
	
	public static function buttonList($form, $model, $attribute, $data, $options = array()) {
		$form->controller->widget('coms.ui.ButtonList', array_merge(array(
			'form' => $form,
			'model' => $model,
			'attribute' => $attribute,
			'data' => $data,
		), $options));
	}
	
}

?>